package game;

import java.util.Random;

class SceneManager
{
    static public SCENE currentScene;
    static public Scene scene = null;
    static public int faseAberta = 0;
    static Random rand = new Random();

	static public void setup()
	{
		//SoundClip.getInstance().LoadSongs();
		//Audios.getInstance().loadSongs();
		LoadImages.getInstance().Load();
		
		SceneManager.scene = new LoaderFile();
		SceneManager.currentScene = SCENE.SCN_OPENING;
	}

	static public void changeScene(int currentScene)
	{
		Audios.getInstance().stopAll();
		
		switch (currentScene)
		{
			case 0:
				SceneManager.scene = new Menu();
				SceneManager.currentScene = SCENE.SCN_MENU;
				break;
				
			case 1:
				SceneManager.scene = new Level_01();
				SceneManager.currentScene = SCENE.SCN_LEVEL_01;				
				break;
				
			case 2:
				SceneManager.scene = new Opening();
				SceneManager.currentScene = SCENE.SCN_OPENING;
				
				break;
				
			case 3:
				SceneManager.scene = new Instrucoes();
				SceneManager.currentScene = SCENE.SCN_MENU_INSTRUCTION;
				
				break;
				
			case 4:
				SceneManager.scene = new Continue();
				SceneManager.currentScene = SCENE.SCN_MENU_CREDIT;
				
				break;
				
			case 5:
				SceneManager.scene = new InvestimentoBolsa();
				SceneManager.currentScene = SCENE.SCN_INVESTIMENTO;
				break;
			case 6:
				SceneManager.scene = new GameOver();
				SceneManager.currentScene = SCENE.SCN_GAMEOVER;
				break;
			case 7:
				SceneManager.scene = new Congrats();
				SceneManager.currentScene = SCENE.SCN_CONGRATS;
				break;
		}
	}
	
	public static enum SCENE
	{
		SCN_OPENING,
		SCN_MENU,
		SCN_MENU_INSTRUCTION,
		SCN_MENU_CREDIT,
		SCN_GAMEOVER,
		SCN_LEVEL_01,
		SCN_INVESTIMENTO,
		SCN_CONGRATS,

	}
	
}
